#include <iostream>
using namespace std;

class A{

public:
    virtual void fun(){
        cout<<"1"<<endl;
    }
};
class B :public A
{
    public:
     void fun(){
        cout<<"2"<<endl;
    }

};
class C:public B
{
public:
    void fun()    {
        cout<<"3"<<endl;
    }
};
int main(void)
{
    int  value = 504;
    printf("%d %d\n",value /100,value %100);
    return 0;
}
